

<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="username"  placeholder="用户名|手机号" autocomplete="off" value="{:input('username')}"  class="layui-input">
            <input type="text" name="leader_name"  placeholder="推荐人用户名|手机号" autocomplete="off" value="{:input('leader_name')}"  class="layui-input">
            <input type="text" name="ip"  placeholder="IP" autocomplete="off" value="{:input('ip')}"  class="layui-input">
            <input type="text" name="area"  placeholder="地区" autocomplete="off" value="{:input('area')}"  class="layui-input">
            {if condition="isset($param['same_ip']) eq true"}
                <input type="hidden" name="same_ip"    value="$param['same_ip']"  >
            {/if}
            {if condition="isset($param['is_bet_frequently']) eq true"}
            <input type="hidden" name="is_bet_frequently"    value="$param['is_bet_frequently']"  >
            {/if}
            <button class="layui-btn"  id="search"  url="{:url('online_member')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>

    <ul class="layui-nav" lay-filter="">
        {if condition="isset($param['same_ip']) eq true"}
            <li class="layui-nav-item layui-this"><a href="{:url('online_member',['same_ip'=>1])}">同IP登陆用户</a></li>
            <li class="layui-nav-item"><a href="{:url('online_member',['is_bet_frequently'=>1])}">提交下注信息间隔不超3秒内的用户</a></li>
        {else/}
            {if condition="isset($param['same_ip']) eq true"}
                <li class="layui-nav-item "><a href="{:url('online_member',['same_ip'=>1])}">同IP登陆用户</a></li>
                <li class="layui-nav-item layui-this"><a href="{:url('online_member',['is_bet_frequently'=>1])}">提交下注信息间隔不超3秒内的用户</a></li>
            {else/}
                <li class="layui-nav-item"><a href="{:url('online_member',['same_ip'=>1])}">同IP登陆用户</a></li>
                <li class="layui-nav-item"><a href="{:url('online_member',['is_bet_frequently'=>1])}">提交下注信息间隔不超3秒内的用户</a></li>
            {/if}
        {/if}



    </ul>
    <xblock>

        <span class="x-right" style="line-height:40px">共有数据：{$list['count']} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>序号</th>
            <th>会员账户</th>
            <th>登录次数</th>
            <th>登录IP</th>
            <th>登录地区</th>
            <th>设备号</th>
            <th>手机信息</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id="{$vo.id}"><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>{$k}</td>
            <td>{$vo.username}</td>
            <td>{$vo.login_count}</td>
            <td>
                <div><label>注册账户IP:</label><span>{$vo.reg_ip}</span></div>
                <div>  <label>上次登录IP:</label><span>{$vo.prev_login_ip}</span></div>
                <div> <label>本次登录IP:</label><span>{$vo.last_login_ip}</span></div>


            </td>
            <td>

                <div>  <label>上次登录地区:</label><span>{$vo.prev_login_area}</span></div>
                <div> <label>本次登录地区:</label><span>{$vo.last_login_area}</span></div>
                <div> <label>是否一致:</label><span>{if condition="$vo.prev_login_area eq $vo['last_login_area']"}是{else/}否{/if}</span></div>

            </td>
            <td>
                <div><label>登录的设备号:</label><span>{$vo.login_uuid}</span></div>
                <div>  <label>注册绑定的设备号:</label><span>{$vo.uuid}</span></div>
                <div> <label>是否一致:</label><span>  {if condition="$vo.login_uuid eq $vo['uuid']"}是{else/}否{/if}</span></div>


            </td>
            <td>
                <div>  <label>手机品牌:</label><span>{$vo.mobile_brand}</span></div>
                <div><label>手机型号:</label><span>{$vo.mobile_type}</span></div>




            </td>
            <!--<td class="td-status">-->
                <!--<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span></td>-->
            <td class="td-manage">
                <!--<a onclick="member_stop(this,'10001')" href="javascript:;"  title="启用">-->
                    <!--<i class="layui-icon">&#xe601;</i>-->
                <!--</a>-->

                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'login_token' =>1))}">  强制下线</a></ob_link>

            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list['list']->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });




    function setCompany () {

        var data = tableCheck.getData();
        if(data.length==0){
            layer.msg('请选择会员');
            return
        }

        layer.confirm('确认改为公司账号吗？', function (index) {
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url = "{:url('update_info')}";

            $.post(url, {ids: data, is_company: 1}, function (d) {
                if (d.code == 1) {

                    window.location.reload();

                } else {
                    layer.msg(d.msg);

                }
            }, 'json');


        });
    }

    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>